﻿using System.Web.Mvc;

namespace TelerikMvcClientApiRazor.Controllers
{
    public class DropDownListController : BaseController
    {
        public ActionResult DisableListItems()
        {
            return View();
        }

        public ActionResult DataBindListItemsAsTable()
        {
            return View();
        }

        public ActionResult SelectByTextValue()
        {
            return View();
        }

        public JsonResult SelectProducts()
        {
            return new JsonResult { Data = new SelectList(GetProducts(), "Id", "Name") };
        }
    }
}
